package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.SystemDictionaryItem;
import cn.wolfcode.crm.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ISystemDictionaryItemService {
    void delete(Long id);

    void save(SystemDictionaryItem systemDictionaryItem);

    SystemDictionaryItem get(Long id);

    List<SystemDictionaryItem> listAll();

    void update(SystemDictionaryItem systemDictionaryItem);

    /**
     * 分页
     *
     * @param qo
     * @return
     */
    PageInfo<SystemDictionaryItem> query(QueryObject qo);

    /**
     * 根据字典目录的 sn 查询出对应的字典明细 的对象
     * @param sn
     * @return
     */
    List<SystemDictionaryItem> selectDicItemTitleByDicSn(String sn);
}

